<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>
<title><fmt:message key="materialDetail.title" />
</title>
<content tag="heading">
<fmt:message key="materialDetail.heading" />
</content>

<html:form action="saveMaterial" method="post" styleId="materialForm"
	onsubmit="return validateMaterialForm(this)">



	<table width="100%" height="76" border="0" cellpadding="0"
		cellspacing="0" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF">
		<tr>
			<td align="left" valign="top">



				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="25" bgcolor="#5F9CD4" class="font01">
							&nbsp;&nbsp;&nbsp;&nbsp;仓库管理&gt;&gt;原料管理&gt;&gt;新增原料
						</td>
					</tr>
					<tr>
						<td height="8"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table width="99%" border="0" align="center" cellpadding="1"
					cellspacing="1" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF">
					<tr>
						<td height="27" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF"
							style="background-repeat: no-repeat; background-position: right">
							<table width="99%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="2%">
										<img src="img/dian-1.gif" width="6" height="6" />
									</td>
									<td width="48%" class="btn02">
										原料信息
									</td>
									<td width="50%">
										&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
					</td>
					</tr>
					<tr>
						<td>
							<table >
								<tr>
									<td>
										<html:hidden property="id" />
										<html:hidden property="belongDeptName" value="a" />
										<carsite:label styleClass="desc"
											key="materialForm.belongDeptID" />
										<html:errors property="belongDeptID" />
										<html:select property="belongDeptID">
								<html:option value="">请选择</html:option>
								<html:options collection="departmentList" labelProperty="deptName" property="deptId" />
							</html:select>

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.sn" />
										<html:errors property="sn" />
										<html:text property="sn" styleId="sn" styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.title" />
										<html:errors property="title" />
										<html:text property="title" styleId="title"
											styleClass="text medium" />

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.types" />
										<html:errors property="types" />
										<html:text property="types" styleId="types"
											styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.source" />
										<html:errors property="source" />
										<html:text property="source" styleId="source"
											styleClass="text medium" />

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.provider" />
										<html:errors property="provider" />
										<html:text property="provider" styleId="provider"
											styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.price" />
										<html:errors property="price" />
										<html:text property="price" styleId="price"
											styleClass="text medium" />

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.unit" />
										<html:errors property="unit" />
										<html:text property="unit" styleId="unit"
											styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.intro" />
										<html:errors property="intro" />
										<html:text property="intro" styleId="intro"
											styleClass="text medium" />

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.remark" />
										<html:errors property="remark" />
										<html:text property="remark" styleId="remark"
											styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.inputUser" />
										<html:errors property="inputUser" />
										<html:text property="inputUser" styleId="inputUser"
											styleClass="text medium" />

									</td>

									<td>
										<carsite:label styleClass="desc" key="materialForm.inputTime" />
										<html:errors property="inputTime" />
										<html:text property="inputTime" styleId="inputTime"
											styleClass="text medium" />

									</td>
								</tr>
								<tr>
									<td>
										<carsite:label styleClass="desc" key="materialForm.status" />
										<html:errors property="status" />
										<html:text property="status" styleId="status"
											styleClass="text medium" />

									</td>
									<td>
							<carsite:label styleClass="desc" key="materialForm.factNum" />
							<html:errors property="factNum" />
							<html:text property="factNum" styleId="factNum"
								styleClass="text medium" />

						</td>
									</tr>
									<tr>
						<td>
							<carsite:label styleClass="desc" key="materialForm.initNum" />
							<html:errors property="initNum" />
							<html:text property="initNum" styleId="initNum"
								styleClass="text medium" />

						</td>

						<td>
							<carsite:label styleClass="desc" key="materialForm.planNum" />
							<html:errors property="planNum" />
							<html:text property="planNum" styleId="planNum"
								styleClass="text medium" />

						</td>
					</tr>
					  
						
								<tr>
									<td class="buttonBar bottom" colspan=2 align=center>
										<html:submit styleClass="button" property="method.save"
											onclick="bCancel=false">
											<fmt:message key="button.save" />
										</html:submit>



										<html:cancel styleClass="button" onclick="bCancel=true">
											<fmt:message key="button.cancel" />
										</html:cancel>
									</td>
								</tr>

							</table>
						</td>
					</tr>
					</html:form>

					<script type="text/javascript">
    Form.focusFirstElement($("materialForm"));
</script>

					<html:javascript formName="materialForm" cdata="false"
						dynamicJavascript="true" staticJavascript="false" />
					<script type="text/javascript"
						src="<html:rewrite page="/scripts/validator.jsp"/>"></script>